From 43077b47796a450479c6925689b216ab0f9c2fb4 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Thu, 27 Jul 2006 13:18:36 +0100 Subject: [PATCH] Clear MPT l2 entries when allocating monitor pagetable Changeset 10734 removed the code clearing MPT l2 entries, however these entries are stained when copying from idle_pg_table_l2. Signed-off-by: Xin Li --- xen/arch/x86/shadow_public.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/arch/x86/shadow_public.c b/xen/arch/x86/shadow_public.c index 3ff46c9a99..44833b68bc 100644 --- a/xen/arch/x86/shadow_public.c +++ b/xen/arch/x86/shadow_public.c @@ -438,6 +438,8 @@ static void alloc_monitor_pagetable(struct vcpu *v) (l3e_get_flags(mpl3e[i]) & _PAGE_PRESENT) ? l2e_from_pfn(l3e_get_pfn(mpl3e[i]), __PAGE_HYPERVISOR) : l2e_empty(); + for ( i = 0; i < (MACHPHYS_MBYTES >> (L2_PAGETABLE_SHIFT - 20)); i++ ) + mpl2e[l2_table_offset(RO_MPT_VIRT_START) + i] = l2e_empty(); if ( v->vcpu_id == 0 ) { -- 2.30.2